﻿using System;
using System.Data;

namespace VMukti.DataAccess.PBXConfiguration
{
    public class ClsPBXDataService : ClsPBXDataServiceBase
    {
        public void FncDataServicePBXConfigInsertValue(string PBXUserName, string PBXPassword, string PBXDomain)
        {
            try
             {
                ExecuteDataSet("update PBXConfig set FieldValue= '" + PBXUserName + "' where Field='ProviderUserName'", CommandType.Text, null);
                ExecuteDataSet("update PBXConfig set FieldValue= '" + PBXPassword + "' where Field='ProviderPassword'", CommandType.Text, null);
                ExecuteDataSet("update PBXConfig set FieldValue= '" + PBXDomain + "' where Field='ProvideDomain'", CommandType.Text, null);
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

        }
    }
}
